<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
    <div id="app">
        <ol>
            <!-- v-for 可以绑定数据到数组来渲染一个列表 -->
            <li v-for="site in sites">
                {{site.name}}
            </li>
        </ol>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                sites: [
                    {name: 'Runoob'},
                    {name: 'Google'},
                    {name: 'Taobao'}
                ]
            }
        })
    </script>
</body>
</html>